package com.ydx.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

/**
 * 
 * @TableName shiyanshi
 */
@Data
public class Shiyanshi implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer shiyanshiid;

    /**
     * 
     */
    private String shiyanshiname;

    /**
     * 
     */
    private Integer userid;

    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Shiyanshi other = (Shiyanshi) that;
        return (this.getShiyanshiid() == null ? other.getShiyanshiid() == null : this.getShiyanshiid().equals(other.getShiyanshiid()))
            && (this.getShiyanshiname() == null ? other.getShiyanshiname() == null : this.getShiyanshiname().equals(other.getShiyanshiname()))
            && (this.getUserid() == null ? other.getUserid() == null : this.getUserid().equals(other.getUserid()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getShiyanshiid() == null) ? 0 : getShiyanshiid().hashCode());
        result = prime * result + ((getShiyanshiname() == null) ? 0 : getShiyanshiname().hashCode());
        result = prime * result + ((getUserid() == null) ? 0 : getUserid().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", shiyanshiid=").append(shiyanshiid);
        sb.append(", shiyanshiname=").append(shiyanshiname);
        sb.append(", userid=").append(userid);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}